[INFO] cloning repository https://github.com/nusic1/crash-course
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nusic1/crash-course" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnusic1%2Fcrash-course", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnusic1%2Fcrash-course'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] d20c05f784ec6cf57e6e838981cb6d1f3612a9dd
[INFO] testing nusic1/crash-course against master#d408fdd4a82bc3e7ea61dd81bc9a8781b2bf939d for pr-83796
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnusic1%2Fcrash-course" "/workspace/builds/worker-3/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/nusic1/crash-course on toolchain d408fdd4a82bc3e7ea61dd81bc9a8781b2bf939d
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+d408fdd4a82bc3e7ea61dd81bc9a8781b2bf939d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/nusic1/crash-course
[INFO] finished tweaking git repo https://github.com/nusic1/crash-course
[INFO] tweaked toml for git repo https://github.com/nusic1/crash-course written to /workspace/builds/worker-3/source/Cargo.toml
[INFO] crate git repo https://github.com/nusic1/crash-course already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+d408fdd4a82bc3e7ea61dd81bc9a8781b2bf939d" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+d408fdd4a82bc3e7ea61dd81bc9a8781b2bf939d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] c2f683764a3a4af81e0cc831263ffcaa6d32799283ac032b82d8f70f68a89024
[INFO] running `Command { std: "docker" "start" "-a" "c2f683764a3a4af81e0cc831263ffcaa6d32799283ac032b82d8f70f68a89024", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c2f683764a3a4af81e0cc831263ffcaa6d32799283ac032b82d8f70f68a89024", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c2f683764a3a4af81e0cc831263ffcaa6d32799283ac032b82d8f70f68a89024", kill_on_drop: false }`
[INFO] [stdout] c2f683764a3a4af81e0cc831263ffcaa6d32799283ac032b82d8f70f68a89024
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+d408fdd4a82bc3e7ea61dd81bc9a8781b2bf939d" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 11f9d95678ec05f6c340a4664c36015a9328165fec43024a87063557831f25c2
[INFO] running `Command { std: "docker" "start" "-a" "11f9d95678ec05f6c340a4664c36015a9328165fec43024a87063557831f25c2", kill_on_drop: false }`
[INFO] [stderr]    Compiling crash-course v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: an inner attribute is not permitted in this context
[INFO] [stdout]   --> src/main.rs:38:1
[INFO] [stdout]    |
[INFO] [stdout] 38 | #![allow(unused_variables)]
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them.
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: an inner attribute is not permitted in this context
[INFO] [stdout]   --> src/main.rs:84:1
[INFO] [stdout]    |
[INFO] [stdout] 84 | #![allow(dead_code, unused_variables)]
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them.
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: an inner attribute is not permitted in this context
[INFO] [stdout]    --> src/main.rs:140:1
[INFO] [stdout]     |
[INFO] [stdout] 140 | #![allow(dead_code, unused_mut, unused_variables)]
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them.
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: an inner attribute is not permitted in this context
[INFO] [stdout]    --> src/main.rs:222:1
[INFO] [stdout]     |
[INFO] [stdout] 222 | #![allow(unused_mut)]
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them.
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0428]: the name `main` is defined multiple times
[INFO] [stdout]   --> src/main.rs:14:1
[INFO] [stdout]    |
[INFO] [stdout] 4  | fn main() {
[INFO] [stdout]    | --------- previous definition of the value `main` here
[INFO] [stdout] ...
[INFO] [stdout] 14 | fn main() {
[INFO] [stdout]    | ^^^^^^^^^ `main` redefined here
[INFO] [stdout]    |
[INFO] [stdout]    = note: `main` must be defined only once in the value namespace of this module
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0428]: the name `STARTING_MISSILES` is defined multiple times
[INFO] [stdout]   --> src/main.rs:24:1
[INFO] [stdout]    |
[INFO] [stdout] 11 | const STARTING_MISSILES: i32 = 8;
[INFO] [stdout]    | --------------------------------- previous definition of the value `STARTING_MISSILES` here
[INFO] [stdout] ...
[INFO] [stdout] 24 | const STARTING_MISSILES: i32 = 8;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `STARTING_MISSILES` redefined here
[INFO] [stdout]    |
[INFO] [stdout]    = note: `STARTING_MISSILES` must be defined only once in the value namespace of this module
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0428]: the name `READY_AMOUNT` is defined multiple times
[INFO] [stdout]   --> src/main.rs:25:1
[INFO] [stdout]    |
[INFO] [stdout] 12 | const READY_AMOUNT: i32 = 2;
[INFO] [stdout]    | ---------------------------- previous definition of the value `READY_AMOUNT` here
[INFO] [stdout] ...
[INFO] [stdout] 25 | const READY_AMOUNT: i32 = 2;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `READY_AMOUNT` redefined here
[INFO] [stdout]    |
[INFO] [stdout]    = note: `READY_AMOUNT` must be defined only once in the value namespace of this module
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0428]: the name `main` is defined multiple times
[INFO] [stdout]   --> src/main.rs:27:1
[INFO] [stdout]    |
[INFO] [stdout] 4  | fn main() {
[INFO] [stdout]    | --------- previous definition of the value `main` here
[INFO] [stdout] ...
[INFO] [stdout] 27 | fn main() {
[INFO] [stdout]    | ^^^^^^^^^ `main` redefined here
[INFO] [stdout]    |
[INFO] [stdout]    = note: `main` must be defined only once in the value namespace of this module
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0428]: the name `main` is defined multiple times
[INFO] [stdout]   --> src/main.rs:40:1
[INFO] [stdout]    |
[INFO] [stdout] 4  | fn main() {
[INFO] [stdout]    | --------- previous definition of the value `main` here
[INFO] [stdout] ...
[INFO] [stdout] 40 | fn main() {
[INFO] [stdout]    | ^^^^^^^^^ `main` redefined here
[INFO] [stdout]    |
[INFO] [stdout]    = note: `main` must be defined only once in the value namespace of this module
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0428]: the name `main` is defined multiple times
[INFO] [stdout]   --> src/main.rs:87:1
[INFO] [stdout]    |
[INFO] [stdout] 4  | fn main() {
[INFO] [stdout]    | --------- previous definition of the value `main` here
[INFO] [stdout] ...
[INFO] [stdout] 87 | fn main() {
[INFO] [stdout]    | ^^^^^^^^^ `main` redefined here
[INFO] [stdout]    |
[INFO] [stdout]    = note: `main` must be defined only once in the value namespace of this module
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0428]: the name `main` is defined multiple times
[INFO] [stdout]    --> src/main.rs:142:1
[INFO] [stdout]     |
[INFO] [stdout] 4   | fn main() {
[INFO] [stdout]     | --------- previous definition of the value `main` here
[INFO] [stdout] ...
[INFO] [stdout] 142 | fn main() {
[INFO] [stdout]     | ^^^^^^^^^ `main` redefined here
[INFO] [stdout]     |
[INFO] [stdout]     = note: `main` must be defined only once in the value namespace of this module
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0428]: the name `main` is defined multiple times
[INFO] [stdout]    --> src/main.rs:224:1
[INFO] [stdout]     |
[INFO] [stdout] 4   | fn main() {
[INFO] [stdout]     | --------- previous definition of the value `main` here
[INFO] [stdout] ...
[INFO] [stdout] 224 | fn main() {
[INFO] [stdout]     | ^^^^^^^^^ `main` redefined here
[INFO] [stdout]     |
[INFO] [stdout]     = note: `main` must be defined only once in the value namespace of this module
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `ding_machine`
[INFO] [stdout]   --> src/main.rs:85:5
[INFO] [stdout]    |
[INFO] [stdout] 85 | use ding_machine::{on_off, print_difference, print_array, ding, print_distance};
[INFO] [stdout]    |     ^^^^^^^^^^^^ use of undeclared crate or module `ding_machine`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `ready` in this scope
[INFO] [stdout]  --> src/main.rs:5:48
[INFO] [stdout]   |
[INFO] [stdout] 5 |     println!("Firing {} of my {} missiles...", ready, missiles);
[INFO] [stdout]   |                                                ^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 85| use core::future::ready;
[INFO] [stdout]   |
[INFO] [stdout] 85| use std::future::ready;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `missiles` in this scope
[INFO] [stdout]  --> src/main.rs:5:55
[INFO] [stdout]   |
[INFO] [stdout] 5 |     println!("Firing {} of my {} missiles...", ready, missiles);
[INFO] [stdout]   |                                                       ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0136]: multiple `main` functions
[INFO] [stdout]   --> src/main.rs:14:1
[INFO] [stdout]    |
[INFO] [stdout] 14 | / fn main() {
[INFO] [stdout] 15 | |     let mut missiles = STARTING_MISSILES;
[INFO] [stdout] 16 | |     let ready = READY_AMOUNT;
[INFO] [stdout] 17 | |     println!("Firing {} of my {} missiles...", ready, missiles);
[INFO] [stdout] 18 | |     missiles = missiles - ready;
[INFO] [stdout] 19 | |     println!("{} missiles left", missiles);
[INFO] [stdout] 20 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0136]: multiple `main` functions
[INFO] [stdout]   --> src/main.rs:27:1
[INFO] [stdout]    |
[INFO] [stdout] 27 | / fn main() {
[INFO] [stdout] 28 | |     let (mut missiles, ready): (i32, i32) = (STARTING_MISSILES, READY_AMOUNT);
[INFO] [stdout] 29 | |     let ready: i32 = READY_AMOUNT;
[INFO] [stdout] 30 | |     println!("Firing {} of my {} missiles...", ready, missiles);
[INFO] [stdout] 31 | |     missiles = missiles - ready;
[INFO] [stdout] 32 | |     println!("{} missiles left", missiles);
[INFO] [stdout] 33 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0136]: multiple `main` functions
[INFO] [stdout]   --> src/main.rs:40:1
[INFO] [stdout]    |
[INFO] [stdout] 40 | / fn main() {
[INFO] [stdout] 41 | |     let width = 4;
[INFO] [stdout] 42 | |     let height = 7;
[INFO] [stdout] 43 | |     let depth = 10;
[INFO] [stdout] ...  |
[INFO] [stdout] 63 | |     println!("Volume is {}", volume(width, height, depth));
[INFO] [stdout] 64 | | }
[INFO] [stdout]    | |_^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0136]: multiple `main` functions
[INFO] [stdout]    --> src/main.rs:87:1
[INFO] [stdout]     |
[INFO] [stdout] 87  | / fn main() {
[INFO] [stdout] 88  | |     let coords: (f32, f32) = (6.3, 15.0);
[INFO] [stdout] 89  | |     // 1. Pass parts of `coords` to the `print_difference` function. This should show the difference
[INFO] [stdout] 90  | |     // between the two numbers in coords when you do `cargo run`.  Use tuple indexing.
[INFO] [stdout] ...   |
[INFO] [stdout] 134 | |     print_distance(coords);
[INFO] [stdout] 135 | | }
[INFO] [stdout]     | |_^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0136]: multiple `main` functions
[INFO] [stdout]    --> src/main.rs:142:1
[INFO] [stdout]     |
[INFO] [stdout] 142 | / fn main() {
[INFO] [stdout] 143 | |     // This collects any command-line arguments into a vector of Strings.
[INFO] [stdout] 144 | |     // For example:
[INFO] [stdout] 145 | |     //
[INFO] [stdout] ...   |
[INFO] [stdout] 173 | |     }
[INFO] [stdout] 174 | | }
[INFO] [stdout]     | |_^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0136]: multiple `main` functions
[INFO] [stdout]    --> src/main.rs:224:1
[INFO] [stdout]     |
[INFO] [stdout] 224 | / fn main() {
[INFO] [stdout] 225 | |     // This fancy stuff either gets the first argument as a String, or prints
[INFO] [stdout] 226 | |     // usage and exits if an argument was not supplied to the program.
[INFO] [stdout] 227 | |     let mut arg: String = std::env::args().nth(1).unwrap_or_else(|| {
[INFO] [stdout] ...   |
[INFO] [stdout] 278 | |     println!("1 + 2 = {}, even via references", add(&1, &2));
[INFO] [stdout] 279 | | }
[INFO] [stdout]     | |_^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 21 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0136, E0425, E0428, E0432.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0136`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `crash-course`
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `Command { std: "docker" "inspect" "11f9d95678ec05f6c340a4664c36015a9328165fec43024a87063557831f25c2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "11f9d95678ec05f6c340a4664c36015a9328165fec43024a87063557831f25c2", kill_on_drop: false }`
[INFO] [stdout] 11f9d95678ec05f6c340a4664c36015a9328165fec43024a87063557831f25c2
